-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix static build and install #6158
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! @expipiplus1 can you take a look as well?
/format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you add the new option to building.md please
🌈 Formatted, please merge the changes from this PR |
9b367bb
to
c2aa36b
Compare
Added docs to building.md, fixed formatting and rebased on top of master |
Main goal of the PR is to simplify building statically when used as a submodule by a downstream project.
Fixes #5832 by adding missing STATIC arguments in cmake.
Improves the state on #5821 by fixing build errors, but does not entirely fix the static build install, just disables the failing part. Completely fixing the problem requires being more careful with what dependencies are PRIVATE and PUBLIC or adding additional explicit targets to install.
Also adds an option to disable LTO, this can be useful to limit the size of static libs (
slang.lib
is currently ~2GB when using LTO).